projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3901062
)
(font_unparse_xlfd): If pixel_size is zero, make the
author
Kenichi Handa
<handa@m17n.org>
Mon, 3 Dec 2007 13:49:09 +0000
(13:49 +0000)
committer
Kenichi Handa
<handa@m17n.org>
Mon, 3 Dec 2007 13:49:09 +0000
(13:49 +0000)
PIXEL_SIZE part a wild card.
src/font.c
patch
|
blob
|
history
diff --git
a/src/font.c
b/src/font.c
index 43af7345c3373c95dc9cee9cab9b75646fc25051..303b5c3ba0676d1c59413fd2973b30af0943c72b 100644
(file)
--- a/
src/font.c
+++ b/
src/font.c
@@
-1153,8
+1153,9
@@
font_unparse_xlfd (font, pixel_size, name, nbytes)
i = XINT (val);
if (i > 0)
len += sprintf (f[XLFD_PIXEL_INDEX], "%d-*", i) + 1;
- else
/* i == 0 */
+ else
if (pixel_size > 0)
len += sprintf (f[XLFD_PIXEL_INDEX], "%d-*", pixel_size) + 1;
+ f[XLFD_PIXEL_INDEX] = "*-*", len += 4;
}
else if (FLOATP (val))
{